import { defHttp } from '/@/utils/http/axios';
import { ApiCommon } from '../common';

const { BILLING_ADMIN_API } = ApiCommon;

enum API {
  GET_RECORD_LIST = '/record/business/payments/user/records',
  GET_PAYMENTWAY_LIST = '/paymentway/list',
}

// 缴费记录
export const getRecordList = (data: object) =>
  defHttp.post({ url: BILLING_ADMIN_API + API.GET_RECORD_LIST, data });
export const getPaymentwayList = (data: object) =>
  defHttp.post({ url: BILLING_ADMIN_API + API.GET_PAYMENTWAY_LIST, data });
